package com.hisoft.web.security.dao;

import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Repository;

import com.hisoft.web.common.dao.IbatisDaoSupport;
import com.hisoft.web.security.domain.Account;

@Repository
public class AccountDao extends IbatisDaoSupport {
	
	public Account getAccount(String username) throws DataAccessException {
		
		return (Account) getSqlMapClientTemplate().queryForObject(
				"getAccountByUsername", username);
	}
	
}
